// import com.alibaba.druid.sql.ast.SQLExpr;
// import com.alibaba.druid.sql.ast.SQLLimit;
// import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;

#include "MySqlShowRelayLogEventsStatement.h"
#include "../../../../ast/SQLExpr.h"
#include "../../../../ast/SQLLimit.h"
#include "../../visitor/MySqlASTVisitor.h"

SQLExpr_ptr MySqlShowRelayLogEventsStatement::getLogName()
{
  return logName;
}

void MySqlShowRelayLogEventsStatement::setLogName(SQLExpr_ptr logName)
{
  this->logName = logName;
}

SQLExpr_ptr MySqlShowRelayLogEventsStatement::getFrom()
{
  return from;
}

void MySqlShowRelayLogEventsStatement::setFrom(SQLExpr_ptr from)
{
  this->from = from;
}

SQLLimit_ptr MySqlShowRelayLogEventsStatement::getLimit()
{
  return limit;
}

void MySqlShowRelayLogEventsStatement::setLimit(SQLLimit_ptr limit)
{
  this->limit = limit;
}

void MySqlShowRelayLogEventsStatement::accept0(MySqlASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(MySqlShowRelayLogEventsStatement)))
  {
    acceptChild(visitor, logName);
    acceptChild(visitor, from);
    acceptChild(visitor, limit);
  }
  visitor->endVisit(SharedObject(MySqlShowRelayLogEventsStatement));
}
